// 根据角色动态生成路由
import { defineFakeRoute } from "vite-plugin-fake-server/client";

export default defineFakeRoute([
  {
    url: "/login",
    method: "post",
    response: ({ body }) => {
      return {
        err: {
          code: 0,
          msg: "string"
        },
        status: {
          code: 200,
          msg: "string"
        },
        token:
          "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiSm9obiIsImFkbWluIjp0cnVlfQ.I39zzcXqxtzLuFRxqj5pWsVErx9yiQfjBZ0-fsi4n9xJ9W13gfhuO5-ZRsRJ5PmF4x-oGIhk8MCos3pW21nj1w"
      };
    }
  }
]);
